<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <!-- 导入Vue -->
    <script src="https://unpkg.com/vue@next"></script>
</head>
<body>
   <div id="app">
        <img v-bind:src="url">
        <h1>{{message}}</h1>
        <h3>{{date}}</h3>
   </div> 
   <script>

    // 发送网络请求
    // 获取电影数据   
    const hello = {
        // 指定数据源，既MVVM中的Model
        data: function() {
            return {
                message: '钢铁侠',
                date: '2010年',
                url: 'https://img1.doubanio.com/view/photo/s_ratio_poster/public/p2670448229.webp'
            }
        }
    }
    const app = Vue.createApp(hello)
    app.mount('#app') // 指定当前vue实例要控制页面的哪个区域
   </script>
</body>
</html>